# -*- coding: utf-8 -*-
# !/usr/bin/env python
from rest_framework.views import APIView
from components.kubernetes.dao import get_k8s_cluster_hosts
from utils.views import Result

class HostsBindCluster(APIView):
    def get(self, request):
        data = request.query_params

        env_cluster_data = get_k8s_cluster_hosts(data['kubernetes_cluster_id'])

        return Result.success_response(data=env_cluster_data, msg='查询成功')